<div class="kk-box ">
    <div class="kk-block-bd" >
        <textarea class="weui-textarea"  rows="4" placeholder="服药时间，忌口与禁忌，用药注意事项等" id="doctorRemarkArea"></textarea>
        <span class="cgray tiny-textjin">0/1000</span>
    </div>
</div>
<div class="kk-box ">
    <div class="kk-block-bd" >
        <span>存为常用医嘱</span>
        <span class="kk-fr small-txt cgray"><input class="weui-switch" type="checkbox"></span>
    </div>
</div>

<div class="kk-box ">
    <ul class="kk-ultab">
        <li class="kk-tab-current">快捷输入</li>
        <li>常用医嘱</li>
    </ul>

    <div id="#tab1" class="tabs" style="background-color: white">
        <div style="padding:10px">
            <p style="font-size: 14px">服药时间</p>
            <ul class="ul-desc">
                <li>饭后食用</li>
                <li >饭后食用</li>
                <li >饭后食用</li>
                <li >饭后食用</li>
                <li >饭后食用</li>
            </ul>
            <p style="font-size: 14px">忌口、禁忌</p>
            <ul class="ul-desc">
                <li>饭后食用</li>
                <li >饭后食用</li>
                <li >饭后食用</li>
                <li >饭后食用</li>
                <li >饭后食用</li>
            </ul>
        </div>
    </div>
    <div id="#tab2" class="hidediv tabs">
sss
    </div>
</div>



<div style="margin-top: 10px">
    <a class="weui-btn weui-btn_primary" href="javascript:" style="line-height:2;width:90%" onclick="finishRemark()"> 完 成 </a>
</div>
<script>
function finishRemark(){
    var text = $("#doctorRemarkArea").val();
    if($.trim(text)==""){
        $.toast("请填写医嘱内容","text");
        return;
    }
    $("#ysyz").text(kksubStr(text,10));
    $.kkclosePopup();
    $("#doctorRemark").val($("#doctorRemarkArea").val());
    document.title="开方";
}
$(".kk-ultab").click(function(){
    $(".kk-ultab li").toggleClass("kk-tab-current");
    $(".tabs").toggleClass("hidediv");
});
$(".ul-desc li").click(function(){
    var  oldText = $(".doctorRemarkArea").text();
    $(".doctorRemarkArea").text(oldText==""?"":","+$(this).text());
});
</script>